﻿@using BLL.Enum
@model IList<BLL.Model.Apply.ApplyProcess>
<fieldset>
    <legend>审批详情</legend>
    @if (Model == null || Model.Count == 0 || !Model.Any(p => p.Status == ApplyProcessStatus.Pass || p.Status == ApplyProcessStatus.Refuse))
    {
        <span><em>抱歉,您的申请还未被受理,暂时没有审批信息</em></span>
    }
    else
    {
        Model[0] = Model.FirstOrDefault(p => p.Status != ApplyProcessStatus.Wait);
        @Html.HiddenFor(model => model[0].Id)
        <div class="ez-wr" style="text-align: left; margin-top: 10px;">
            <div class="ez-box">
                <div class="ez-wr">
                    <div class="ez-fl ez-negmr ez-10">
                        <div class="ez-box">
                            @Html.LabelFor(model => model[0].ApprovalUser)：
                        </div>
                    </div>
                    <div class="ez-fl ez-negmr ez-15">
                        <div class="ez-box">
                            @Html.DisplayFor(model => model[0].ApprovalUser.UserName)
                        </div>
                    </div>
                    <div class="ez-fl ez-negmr ez-10">
                        <div class="ez-box">
                            @Html.LabelFor(model => model[0].ApprovalDate)：
                        </div>
                    </div>
                    <div class="ez-fl ez-negmr ez-15">
                        <div class="ez-box">
                            @Html.DisplayFor(model => model[0].ApprovalDate)
                        </div>
                    </div>
                    <div class="ez-fl ez-negmr ez-10">
                        <div class="ez-box">
                            @Html.LabelFor(model => model[0].Status)：
                        </div>
                    </div>
                    <div class="ez-last ez-oh">
                        <div class="ez-box">
                            @ViewBag.Status
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="ez-wr" style="text-align: left; margin-top: 10px;">
            <div class="ez-box">
                <div class="ez-wr">
                    <div class="ez-fl ez-negmr ez-10">
                        <div class="ez-box">
                            @Html.LabelFor(model => model[0].ApprovalComment)：
                        </div>
                    </div>
                    <div class="ez-last ez-oh">
                        <div class="ez-box" style="text-align: left; color: red;">
                            @Html.DisplayFor(model => model[0].ApprovalComment)
                        </div>
                    </div>
                </div>
            </div>
        </div>
    }
</fieldset>
